package io.adrainty.bolee.trade.feign;

import io.adrainty.bolee.framework.commons.basic.ResultDTO;
import io.adrainty.bolee.trade.hystrix.PeriodicPayFeignHystrix;
import io.adrainty.bolee.trade.models.entity.TradeEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * <p>IPeriodicPayFeign</p>
 *
 * @author AdRainty
 * @version V1.0.0
 * @description 签约支付接口
 * @since 2025/9/12 14:40:16
 */

@FeignClient(value = "trade-web", path = "/trade-periodic-feign", fallback = PeriodicPayFeignHystrix.class)
public interface IPeriodicPayFeign {

    @PostMapping("/h5-sign-contract")
    ResultDTO<TradeEntity> h5SignContract(@RequestBody TradeEntity tradeVO);

}
